package com.xiaoke.java1;

/**
 * @author yd
 * @version 1.0
 * @date 2022/3/10 20:32
 */
public class StrongReferenceTest {

    public static void main(String[] args) {
        StringBuilder str = new StringBuilder("Hello ,xiaoke");
        StringBuilder str1 = str;


        str = null;

        System.gc();


        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        System.out.println(str1);
    }

}
